<?php
/*******************************************
* Database Config 					*
*    - by miceiken						*
* Rev 01							*
*******************************************/

$LogonHost = "IP[:PORT]";
$LogonUser = "USER";
$LogonPass = "PASSWORD";
$LogonDB = "logon";

// Change if logon db differs from character db
$CharHost = $LogonHost;
$CharUser = $LogonUser;
$CharPass = $LogonPass;
$CharDB = $LogonDB;

// Change if logon db differs from world db
$WorldHost = $LogonHost;
$WorldUser = $LogonUser;
$WorldPass = $LogonPass;
$WorldDB = "world";

// Change if logon db differs from forum db
$ForumHost = $LogonHost;
$ForumUser = $LogonUser;
$ForumPass = $LogonPass;
$ForumDB = "forum";

/*******************************************
* General Forum Config 					*
*    - by miceiken						*
* Rev 01							*
*******************************************/

$usepms = true; // Allow private message sending
$maxpms = 30; // Maxium Private Messages in Inbox
$allowavatar = true; // Allow avatars?
$sitetitle = "Private Server Name";  // Name of your site / private server
$adminemail = "admin@privateserver.com"; // Administrator email
$notifyme = false; // Send mail on register
$boardpath = "http://localhost/wow/forum/"; // Forum URL (remember / behind)
$sitepath = "http://localhost/wow/"; // Site URL (remember / behind)
$guestposting = false; // Allow quests to post?
$allowsigs = true; // Allow user signatures
$requirekey = false; // Require activation?
$numtopicsperpage = 15; // Topics per forum page
$numrepliesperpage = 20; // Replies per thread page
$newslimit = 3; // Max news at front page
$limit = 16; // Max comments
$ServerName = "Priv Serv"; // Server name, nothing else
$AcceptTerms = true; // Do visitors need to accept the terms of use before entering the real site?
$img_base = "forum/images/";

// News - part of forums

$BBCodeComments = true; // Allow bbcode in comments?

/*******************************************
* Friendslist Config 					*
*    - by miceiken						*
* Rev 20							*
* You can also use hex codes (!)			*
*******************************************/

$BannedColor = "red"; // What color to use when a "friend" is banned
$OfflineColor = "lightgrey"; // Color for offline
$OnlineColor = "lime"; // Color for online

/*******************************************
* Ascent Server Config 					*
*    - by miceiken						*
* Note: used for checkin server status		*
*******************************************/

$ServerIP = "localhost"; // IP to the server
$ServerPort = 8129; // Port to the server.
$RealmList = "logon.private.server";
$CurrentPatch = "2.4.2"; // Ex. 2.4.2 or 2.4.x

/*******************************************
* Realm Configuration 					*
*    - by miceiken						*
* Multiple realm support will come			*
*******************************************/

$RealmName = "Priv Serv0r"; // Realm name
$StatsFile = "http://localhost/StatsDump/stats.xml"; // XML stats file outputted by ascent

/*******************************************
* Advanced Forum Config 				*
*    - by miceiken						*
*******************************************/

$avatarheight = 64;// Maxium avater height (Leave it the way it is, recommended)
$avatarwidth = 64;//Maxium avatar widht (Leave it the way it is, recommended)
$cookiename = "wowcookie"; // Cookie names (Leave it the way it is, recommended)
$commorder = "ASC"; // Comment order, ascending or descending (ASC/DESC)

/*******************************************
* Shop config						*
*    - by miceiken						*
*******************************************/

$item = "DESC"; // Items order in shop (ASC/DESC)
$mailco = 61; // Ingame Mail Icon (61 = Blizz | 64 = Valentine | ++)

/*******************************************
* General Voting config					*
*    - by miceiken						*
*******************************************/

$voterep = 3; // How much rep awarded (Def. = 3)
$votepoint = 1; // Points per vote (Def. = 1)

/*******************************************
* Advanced Voting config				*
*    - by miceiken						*
* Voteid = your voteid from vote site			*
*******************************************/

$voteurl1 = "http://www.xtremetop100.com/in.php?site=";
$votename1 = "Xtreme Top 100 *";
$voteid1 = 1132242893;
$voteimg1 = "votenew.jpg";

$voteurl2 = "http://www.wow-v.com/vote.php?id="; 
$votename2 = "WoW - V *";
$voteid2 = 2768;
$voteimg2 = "wowvbutton4.gif";

$voteurl3 = "http://www.mmorpgtoplist.com/in.php?site="; 
$votename3 = "MMORPGTopList *";
$voteid3 = 12068;
$voteimg3 = "vote.jpg";

$voteurl4 = "http://www.jagtoplist.com/in.php?site=";
$votename4 = "JagTopList *";
$voteid4 = 5609;
$voteimg4 = "vbtn88x55.jpg";

$voteurl5 = "http://wow.top100arena.com/in.asp?id=";
$votename5 = "WoW Top 100 Arena *";
$voteid5 = 18116;
$voteimg5 = "hit.jpg";

/*******************************************
* Custom script settings					*
*    - by miceiken						*
* Do not touch this code					*
*******************************************/

session_start();

$voteurl1 = $voteurl1.$voteid1;
$voteurl2 = $voteurl2.$voteid2;
$voteurl3 = $voteurl3.$voteid3;
$voteurl4 = $voteurl4.$voteid4;
$voteurl5 = $voteurl5.$voteid5;

$forum = mysql_connect($ForumHost, $ForumUser, $ForumPass, true);
mysql_select_db($ForumDB, $forum) or die("Error when connecting to: forum database");

$logon = mysql_connect($LogonHost, $LogonUser, $LogonPass, true);
mysql_select_db($LogonDB, $logon) or die("Error when connecting to: logon database");

$world = mysql_connect($WorldHost, $WorldUser, $WorldPass, true);
mysql_select_db($WorldDB, $world) or die("Error when connecting to: world database");

$char = mysql_connect($CharHost, $CharUser, $CharPass, true);
mysql_select_db($CharDB, $char) or die("Error when connecting to: character database");

if(!get_magic_quotes_gpc())
{
	$_GET = array_map('mysql_real_escape_string', $_GET); 
	$_POST = array_map('mysql_real_escape_string', $_POST); 
	$_COOKIE = array_map('mysql_real_escape_string', $_COOKIE);
}
else
{  
	$_GET = array_map('stripslashes', $_GET); 
	$_POST = array_map('stripslashes', $_POST); 
	$_COOKIE = array_map('stripslashes', $_COOKIE);
	$_GET = array_map('mysql_real_escape_string', $_GET); 
	$_POST = array_map('mysql_real_escape_string', $_POST); 
	$_COOKIE = array_map('mysql_real_escape_string', $_COOKIE);
}
?>